package main

import (
	"fmt"
	"reflect"
	"unsafe"
)

func main() {
	s := "hello world"
	hello := s[:5] // hello
	world := s[6:] // world

	fmt.Printf("s %v \n", (*reflect.StringHeader)(unsafe.Pointer(&s)).Data)
	fmt.Printf("hello %v \n", (*reflect.StringHeader)(unsafe.Pointer(&hello)).Data)
	fmt.Printf("world %v \n", (*reflect.StringHeader)(unsafe.Pointer(&world)).Data)
}
